package com.ruoyi.chat.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.chat.mapper.FriendCircleMapper;
import com.ruoyi.chat.domain.FriendCircle;
import com.ruoyi.chat.service.IFriendCircleService;

/**
 * 朋友圈Service业务层处理
 * 
 * @author zhc
 * @date 2025-05-31
 */
@Service
public class FriendCircleServiceImpl implements IFriendCircleService 
{
    @Autowired
    private FriendCircleMapper friendCircleMapper;

    /**
     * 查询朋友圈
     * 
     * @param id 朋友圈主键
     * @return 朋友圈
     */
    @Override
    public FriendCircle selectFriendCircleById(String id)
    {
        return friendCircleMapper.selectFriendCircleById(id);
    }

    /**
     * 查询朋友圈列表
     * 
     * @param friendCircle 朋友圈
     * @return 朋友圈
     */
    @Override
    public List<FriendCircle> selectFriendCircleList(FriendCircle friendCircle)
    {
        return friendCircleMapper.selectFriendCircleList(friendCircle);
    }

    /**
     * 新增朋友圈
     * 
     * @param friendCircle 朋友圈
     * @return 结果
     */
    @Override
    public int insertFriendCircle(FriendCircle friendCircle)
    {
        return friendCircleMapper.insertFriendCircle(friendCircle);
    }

    /**
     * 修改朋友圈
     * 
     * @param friendCircle 朋友圈
     * @return 结果
     */
    @Override
    public int updateFriendCircle(FriendCircle friendCircle)
    {
        return friendCircleMapper.updateFriendCircle(friendCircle);
    }

    /**
     * 批量删除朋友圈
     * 
     * @param ids 需要删除的朋友圈主键
     * @return 结果
     */
    @Override
    public int deleteFriendCircleByIds(String[] ids)
    {
        return friendCircleMapper.deleteFriendCircleByIds(ids);
    }

    /**
     * 删除朋友圈信息
     * 
     * @param id 朋友圈主键
     * @return 结果
     */
    @Override
    public int deleteFriendCircleById(String id)
    {
        return friendCircleMapper.deleteFriendCircleById(id);
    }
}
